import { createPinia, defineStore } from 'pinia';
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';
export default {
    install(app) {
        const pinia = createPinia();
        pinia.use(piniaPluginPersistedstate);
        app.use(pinia);
        this.store();
    },
    store() {
        defineStore('store', {
            state: () => {
                return {
                    theme: {
                        dark: false,
                        tag: 'card',
                        stripe: true,
                        border: true,
                        align: 'center',
                        size: 'default'
                    },
                    menu: [],
                    token: ''
                };
            },
            persist: true
        })();
    }
};
